package com.medical.view.admin.user;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.markup.html.AjaxLink;
import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.model.Model;

import com.medical.view.wicket.html.modal.MedPop;
import com.medical.view.wicket.html.panal.MedPanel;

 

public class UserPanel  extends MedPanel {

	public UserPanel( String s)
	{
		super(s);




        // The ModalWindow, showing some choices for the user to select.
        final MedPop selectModalWindow = new MedPop("modalwindow","add User",new AddUserPanel());
        add(selectModalWindow);

 

        // The AjaxLink to open the modal window
        add(new AjaxLink("linkToModalWindow"){
            public void onClick(AjaxRequestTarget target) {
                selectModalWindow.show(target);
            }
        });
        add(new searchUser("searchUser"));
    }
}